import request from '@/util/request'
import store from '@/vuex/store'
export function getPropertyreApi(list) {
    return request({
        url: 'propertyre/getPropertyre.do',
        method: 'post',
        data: {
            pageSize: list.pageSize,
            currentPage: list.currentPage,
            token: store.getters.token
        }
    })
}
export function editDataPassApi(id) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: id
    }
    return request({
        url: 'propertyre/editDataPass.do',
        method: 'post',
        data: value
    })
}

export function selectLikeProperApi(data) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(data)
    }
    return request({
        url: 'propertyre/selectLikePropertyreInfo.do',
        method: 'post',
        data: value
    })
}
export function boHuiDataApi(data) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(data)
    }
    return request({
        url: 'propertyre/boHuiData.do',
        method: 'post',
        data: value
    })
}
//修改数据
export function proDataEditApi(data) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(data)
    }
    return request({
        url: 'propertyre/proDataEdit.do',
        method: 'post',
        data: value
    })
}
export function getPropertyreExitStateApi(list) {
    return request({
        url: 'propertyre/getPropertyreExitState.do',
        method: 'post',
        data: {
            pageSize: list.pageSize,
            currentPage: list.currentPage,
            token: store.getters.token
        }
    })
}

export function selectLikeProperStateApi(data) {
    const value = {
        appKey: '',
        appFlag: 2,
        token: store.getters.token,
        versionCode: 0,
        param: JSON.stringify(data)
    }
    return request({
        url: 'propertyre/selectLikeProperStateInfo.do',
        method: 'post',
        data: value
    })
}
